package com.info33.platform.doc.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.info33.platform.common.mvc.entity.BaseEntity;
import com.info33.platform.doc.util.enums.DocSpaceTypeEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 文档管理 - 数据仓库 - 分组目录
 * 
 * @author admin
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class DocFileDirectory extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "空间类型（BUSINESS业务空间PUBLIC公共空间PERSON个人空间）")
    private DocSpaceTypeEnum type;

    @ApiModelProperty(value = "父id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long pid;

    @ApiModelProperty(value = "目录名称")
    private String name;

    @ApiModelProperty(value = "级别")
    private Integer level;

}